﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WebApplication2
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        DataSet ds = new DataSet();
        protected void Page_Load(object sender, EventArgs e)
        {
            init();
        }

        protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            //show dateList and valueList
            ListBox2.Style.Add("display", "");
            ListBox3.Style.Add("display", "");

            
        }
        protected void init()
        {
            ds.ReadXml(Server.MapPath("Browser.xml"));
            ListBox1.DataSource = ds;
            ListBox1.DataMember = "nom";
            ListBox1.DataBind();

            //hide dateList and valueList
            ListBox2.Style.Add("display", "none");
            ListBox3.Style.Add("display", "none");
            btnNewDate.Style.Add("display", "none");
            btnNewValue.Style.Add("display", "none");
        }
    }
}